package activity

class Field {
    String CID
    String service
    String title
    String tel1
    String tel2
    String email1
    String email2
    String custom1
    String custom2
    String custom1Label
    String custom2Label
    static belongsTo = [event:Event]

    static constraints = {
        CID(inList:["R","Y","N"])//可/有/無
        service(inList:["R","Y","N"])//可/有/無
        title(inList:["R","Y","N"])//可/有/無
        tel1(inList:["R","Y","N"])//可/有/無
        tel2(inList:["R","Y","N"])//可/有/無
        email1(inList:["R","Y","N"])//可/有/無
        email2(inList:["R","Y","N"])//可/有/無
        custom1(nullable:true,inList:["R","Y","N"])//可/有/無
        custom2(nullable:true,inList:["R","Y","N"])//可/有/無
    }
    
    static transients = ["custom1Label","custom2Label"]    
}